﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NGourd.Core.Runners;

namespace NGourd.Core.Plans
{
    class BeforeScenarioStep : LifecycleScenarioStep
    {
        public BeforeScenarioStep(StepLibrary stepLibrary) : base(stepLibrary, "Before") { }

        protected override void Execute()
        {
            stepLibrary.StartScenario();
        }

    }

    class AfterScenarioStep : LifecycleScenarioStep
    {
        public AfterScenarioStep(StepLibrary stepLibrary) : base(stepLibrary, "After") { }

        protected override void Execute()
        {
            stepLibrary.EndScenario();
        }
    }


    class BeforeAllScenarioStep : LifecycleScenarioStep
    {
        public BeforeAllScenarioStep(StepLibrary stepLibrary) : base(stepLibrary, "Before All") { }

        protected override void Execute()
        {
            stepLibrary.StartRun();
        }

    }

    class AfterAllScenarioStep : LifecycleScenarioStep
    {
        public AfterAllScenarioStep(StepLibrary stepLibrary) : base(stepLibrary, "After All") { }

        protected override void Execute()
        {
            stepLibrary.EndRun();
        }
    }
}
